package cn.tedu.zc.pojo.dto;

import java.math.BigInteger;
/**
 * 该类用于接受浏览器传输过来的用户注册信息
 * @author JunLi
 * username: 'String',
 * nickname: 'String',
 * password: 'String',
 * phone: 'String',
 * checkNum: 'Integer',
 * checkBoxes: 'Boolean'
 * */
public class UserDTO {
    private BigInteger id;//数据库序号
    private String username;//用户名(唯一)
    private String password;//密码
    private String nickname;//昵称
    private String phone;//手机号(唯一)
    private Integer checkNum;//验证码
    private Boolean checkBoxes;//用户协议
    private Integer power_id;//特殊权限

    @Override
    public String toString() {
        return "UserDTO{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", phone='" + phone + '\'' +
                ", checkNum=" + checkNum +
                ", checkBoxes=" + checkBoxes +
                ", power_id=" + power_id +
                '}';
    }

    public BigInteger getId() {
        return id;
    }

    public void setId(BigInteger id) {
        this.id = id;
    }

    public Integer getPower_id() {
        return power_id;
    }

    public void setPower_id(Integer power_id) {
        this.power_id = power_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getCheckNum() {
        return checkNum;
    }

    public void setCheckNum(Integer checkNum) {
        this.checkNum = checkNum;
    }

    public Boolean getCheckBoxes() {
        return checkBoxes;
    }

    public void setCheckBoxes(Boolean checkBoxes) {
        this.checkBoxes = checkBoxes;
    }
}
